package com.hhit.zhgd.service.impl

import com.baomidou.mybatisplus.extension.plugins.pagination.Page
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
import com.hhit.zhgd.dao.LoginLogMapper
import com.hhit.zhgd.domain.entity.LoginLog
import com.hhit.zhgd.service.LoginLogService
import org.springframework.stereotype.Service

@Service("loginLogService")
class LoginLogServiceImpl:ServiceImpl<LoginLogMapper,LoginLog>(), LoginLogService {
    override fun getList(params: HashMap<String, Any?>): Page<HashMap<String,Any?>> {
        val page = params["page"]?.toString()?.toLongOrNull() ?: 1L
        val size = params["size"]?.toString()?.toLongOrNull() ?: 10L
        return this.baseMapper.getList( Page<LoginLog>(page,size), params)
    }
}